import axios from "axios";
import { resource_url } from "./url";

// const headers = {
//   Authorization:
//     "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3MjcyMzExOTMsImlhdCI6MTcyNzE0NDc5MywiaXNzIjoic2Yud29yayIsInN1YiI6IntcImZpcnN0TGFuZGluZ1wiOjEsXCJndWlkXCI6XCI1MmMxZGZkZTM5MWY0ZjYzYjVmODRlMDY1NGMwNjEzN1wiLFwiaWRcIjoyLFwicGhvbmVcIjpcIjE1NTAwMDAwMDAwXCIsXCJ1c2VyQ29kZVwiOlwiYWRtaW5cIixcInVzZXJOYW1lXCI6XCLotoXnuqfnrqHnkIblkZhcIn0ifQ.29LREjzawIx_d6F6vfm1fOutfZvr8ZsByGSpZyombk8", // 示例：添加认证 token
// };

export function getOssList() {
  return axios.post(
    `${resource_url}/user/resource/read/object/list`,
    {
      // @ts-ignore
      bucket: "d3-engine",
      path: "model/",
    },
    {
      withCredentials: true,
      // headers,
    }
  );
}
